function config(){

    this.port = 4000;
    this.connectionStr = 'mongodb://127.0.0.1:27017/CompanyAdmin?uri.minPoolSize=15';

    this.sessionName = 'JXCSESSION';
    this.sessionTimeout = 3600 * 1000;

    this.ueditorFileDir = "./uploads/ueditor/pic/";

    this.host = "http://www.alibily.com:4000";

    this.ErrorStr =
    {
        opFail:"操作失败",
        notImpl:"没有实现",
        connErr:"数据库连接失败.",
        apiNotExists:"API不存在",
        missParamErr:"参数不完整",
        paramErr:'参数错误',
        reqErr:"请求失败",
        passwordErr:'密码错误',
        accountExistsErr:'账号已存在',
        accountNotExistsErr:'账号不存在',
        rightNotEnough:'权限不足',
        needLogin:'会话过期,请重新登陆',
        companyNotExists:'企业不存在',
        adExistsErr:'该广告类型的广告词已存在'
    };

}
module.exports = exports = new config();